﻿@model Project_2._2.ViewModels.CarList_ViewModel

@{
    ViewBag.Title = "Chi Tiết Xe Cho Thuê";
    Layout = "~/Views/Shared/_AdminLayoutPage.cshtml";
    Project_2._2.Models.QuanLyThueXeEntities db = new Project_2._2.Models.QuanLyThueXeEntities();
}

<div class="grid_12">
    <div class="block-border">
        <div class="block-header">
            Thông Tin Chi Tiết Xe
            @Html.ActionLink("Trở Lại Danh Sách", "Default", "AdminCars", null, new { @class = "button" })
        </div>
        <div class="block-content">
            <table class="tablesorter" style="line-height:35px ; width:100% ;font-size:medium ; border-bottom-style:solid">
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Tên Khách Hàng </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px">
                        @Model.TenKH
                    </td>

                </tr>
                 <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Tên Xe Thuê </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px">
                        @Model.name
                    </td>

                </tr>
                <tr>
                    <td style="font-weight: 700; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">Thương Hiệu Xe</td>
                    <td style=" font-style: italic; font-weight: 600; padding-left: 30px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.THieu
                    </td>
                </tr>

                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Loại Xe </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.Loai
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Dịch Vụ Cho Thuê </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.tendichvu
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: 700; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">Dòng Xe</td>
                    <td style=" font-style: italic; font-weight: 600; padding-left: 30px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.DongXe
                    </td>
                </tr>

                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Đời Xe </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.DoiXe
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Màu Xe  </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.Color
                    </td>
                </tr>
                
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Phụ Trợ Quá KM </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @string.Format("{0:#,### VNĐ}",@Model.PhuTroKM)
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Phụ Trơ Ngoài Giờ </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @string.Format("{0:#,### VNĐ}", @Model.PhuTroNgoaiGio)
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Sử Dụng Cuối Tuần  </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @string.Format("{0:#,### VNĐ}",@Model.SuDungCuoiTuan)
                    </td>
                </tr>
               
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Giá Cho Thuê </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                      @string.Format("{0:#,### VNĐ}",@Model.Gia)
                    </td>
                </tr>
          
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">Trạng Thái Xe </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; padding-right: 20px; text-align: left; width: 67%; font-family: 'Times New Roman'; font-size: 15px; ">
                        @Model.TThai
                    </td>
                </tr>
                <tr>
                    <td style="font-weight: bold; padding-left: 150px; text-align: left; font-family: 'Times New Roman'; font-size: 15px; "> Duyệt </td>
                    <td style="padding-left: 30px; font-style: italic; font-weight: 600; text-align: left; font-family: 'Times New Roman'; font-size: 15px; ">
                        @if (@Model.duyet == true)
                        {  <span>Đã duyệt</span>  }
                        else
                        {   <span>Chưa duyệt</span> }
                    </td>
                </tr>
                <tr>

                    <td colspan="2" style="padding-left: 350px; font-style: italic; font-weight: 600; padding-right: 20px; text-align: left; width: 67%; font-family: 'Times New Roman'; font-size: 15px; ">
                        <a class="button" rel="tooltip-top" title="Duyệt Qua " href="@Url.Action("Accept", "AdminCars", new { id = @Model.id })">Đã Duyệt</a>
                        <a class="button" rel="tooltip-top" title="Hủy Bỏ" href="@Url.Action("Delete", "AdminCars", new { id = @Model.id })" onclick="return DeleteConfirm()">Hủy Bỏ</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

<script>
    function DeleteConfirm() {
        if (confirm("Bạn có thật sự muốn xóa không?"))
            return true;
        else
            return false;
    }
</script>

